/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.barbon.sudoku.model.entidade;

import java.util.List;
import java.util.Objects;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Barbon
 */
public class Ranking {
    private List<RegistroRanking> rankings;
    private Tabuleiro tabuleiro;

    public Ranking() {
    }

    public Ranking(List<RegistroRanking> ranking, Tabuleiro tabuleiro) {
        this.rankings = ranking;
        this.tabuleiro = tabuleiro;
    }

    public List<RegistroRanking> getRankings() {
        return rankings;
    }

    public void setRankings(List<RegistroRanking> rankings) {
        this.rankings = rankings;
    }

    public Tabuleiro getTabuleiro() {
        return tabuleiro;
    }

    public void setTabuleiro(Tabuleiro tabuleiro) {
        this.tabuleiro = tabuleiro;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 43 * hash + Objects.hashCode(this.rankings);
        hash = 43 * hash + Objects.hashCode(this.tabuleiro);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Ranking other = (Ranking) obj;
        if (!Objects.equals(this.rankings, other.rankings)) {
            return false;
        }
        if (!Objects.equals(this.tabuleiro, other.tabuleiro)) {
            return false;
        }
        return true;
    }
    
    
}
